



package com.zelix;

import java.io.*;
import java.util.Hashtable;


//            is, xs, zs, om, 
//            sm, hs, ft, jb, 
//            jm

public final class ys extends is
    implements om, sm
{

    zs i;
    private static String z;

    ys(ft ft, zs zs1)
    {
        super(((is) (ft)).e, ((is) (ft)).f);
        i = zs1;
    }

    public void a(zs zs1, zs zs2)
    {
        if(i == zs1)
            i = zs2;
    }

    public String a()
    {
        return z;
    }

    public final String b()
    {
        return h();
    }

    public String h()
    {
        return i.b();
    }

    public String k()
    {
        return "\"" + h() + "\"";
    }

    public int l()
    {
        return 8;
    }

    public zs m()
    {
        return i;
    }

    public void a(String s)
    {
        i.a(s);
        d();
    }

    public int n()
    {
        return i.b().length();
    }

    static xs b(int j, jb jb, jm jm)
        throws IOException
    {
        jb.skipBytes(2);
        return xs.a(jm, 1);
    }

    protected void a(DataOutputStream dataoutputstream)
        throws IOException
    {
        dataoutputstream.writeByte(8);
        dataoutputstream.writeShort(i.j());
    }

    protected void a(DataOutputStream dataoutputstream, Hashtable hashtable)
        throws IOException
    {
label0:
        {
            dataoutputstream.writeByte(8);
            zs zs1 = (zs)hashtable.get(i);
            if(zs1 != null)
            {
                dataoutputstream.writeShort(zs1.j());
                if(!is.g)
                    break label0;
            }
            dataoutputstream.writeShort(i.j());
        }
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 3;
                    break;
                case 1:
                    key =13;
                    break;
                case 2:
                    key =63;
                    break;
                case 3:
                    key =19;
                    break;
                default:
                    key =97;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static
    {
        z = z("pyMz\017d".toCharArray());
    }
}
